/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-02-28 15:06:11
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-02-28 15:13:48
 * @FilePath: \盐师22Git仓库\day05\Test07.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
 */
package day05;

public class Test07 {
    public static void main(String[] args) {
        // System.out.println();
        //创建类的对象 学生类的实例对象
        Student stu1 =new Student();
        //设置对象的属性值
        stu1.name = "张三";
        stu1.age = 18;
        //查看对象的属性值
        System.out.println(
            "姓名:" + stu1.name + 
            "年龄：" + stu1.age);
        //调用对象方法
        stu1.study("java");
    }
    
}
